# Makefile
# udis86 - Cmd line interface.
#

SHELL		= @SHELL@
top_srcdir	= @top_srcdir@
srcdir		= @srcdir@
CC		= @CC@
CFLAGS		= @CFLAGS@ -Wall -O2
LIBS		= @LIBS@
INSTALL		= @INSTALL@
INSTALL_PROGRAM	= @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@
prefix		= @prefix@
exec_prefix	= ${prefix}
bindir		= $(exec_prefix)/bin
libdir		= $(prefix)/lib
mandir		= @mandir@
includedir	= @includedir@
RM		= rm


.SUFFIXES: .c .o
.c.o:
	$(CC) -c $(CFLAGS) -o $@ $<

OBJS =	udcli.o ../libudis86/libudis86.a

udcli: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o udcli
install: udcli
	$(INSTALL_PROGRAM) $(srcdir)/udcli $(INSTALLROOT)$(bindir)/udcli
uninstall:
	$(RM) -f $(INSTALLROOT)$(bindir)/udcli
clean:
	$(RM) -f core $(srcdir)/*.o $(srcdir)/udcli
distclean: clean
	$(RM) -f udcli config.h Makefile *~
